//package com.zuimei.zuimei.adapters;
//
//import android.content.Context;
//import android.graphics.Bitmap;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.ImageView;
//import android.widget.LinearLayout;
//import android.widget.RelativeLayout;
//import android.widget.TextView;
//
//import com.squareup.picasso.Picasso;
//import com.zuimei.zuimei.R;
//import com.zuimei.zuimei.beans.FindAppItem5Bean;
//
///**
// * Created by Jogger on 2017/1/20.
// * 美友主页头部适配器
// */
//
//public class MeiYouHomeHeadAdapter extends RecyclerView.Adapter<MeiYouHomeHeadAdapter
//        .MyViewHolder> {
//
//    private Context mContext;
//    private FindAppItem5Bean.UserBean mUser;
//    private int mRecommandCount;
//
//    public MeiYouHomeHeadAdapter(Context context) {
//        mContext = context;
//    }
//
//    public void loadData(FindAppItem5Bean.UserBean userBean, int recommandCount) {
//        mUser = userBean;
//        mRecommandCount = recommandCount;
//        notifyDataSetChanged();
//    }
//
//    @Override
//    public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        View view = LayoutInflater.from(mContext).inflate(R.layout.rv_meiyou_home_head, parent,
//                false);
//        return new MyViewHolder(view);
//    }
//
//    @Override
//    public void onBindViewHolder(MyViewHolder holder, int position) {
//        Picasso.with(mContext)
//                .load(mUser.getAvatar_url())
//                .config(Bitmap.Config.RGB_565)
//                .into(holder.iv_avatar);
//        holder.tv_recommand_count.setText(mRecommandCount + "");
//    }
//
//    @Override
//    public int getItemCount() {
//        return 1;
//    }
//
//    public class MyHeadViewHolder extends RecyclerView.ViewHolder {
//        RelativeLayout rl_head_container;
//        LinearLayout ll_head_container;
//        ImageView iv_avatar;
//        TextView tv_user_name;
//        TextView tv_career;
//        TextView tv_recommand_count;
//        TextView tv_collect_count;
//
//        public MyHeadViewHolder(View itemView) {
//            super(itemView);
//            rl_head_container = (RelativeLayout) itemView.findViewById(R.id.rl_head_container);
//            ll_head_container = (LinearLayout) itemView.findViewById(R.id.ll_head_container);
//            iv_avatar = (ImageView) itemView.findViewById(R.id.iv_avatar);
//            tv_user_name = (TextView) itemView.findViewById(R.id.tv_user_name);
//            tv_career = (TextView) itemView.findViewById(R.id.tv_career);
//            tv_recommand_count = (TextView) itemView.findViewById(R.id.tv_recommand_count);
//            tv_collect_count = (TextView) itemView.findViewById(R.id.tv_collect_count);
//
//        }
//    }
//}
